$(".searchsubmit").click(function () {
    var data = $("#searchform").serialize();
    window.location.href = '/configure/horn?' + data;
});

/**删除*/
$("#info_disabled,#info_res,#info_add,#info_delete").click(function () {
    var act = $(this).attr('id');
    var value = new Array();
    $("tbody span[class='checked'] input").each(function (a, b) {
        value[a] = 'id=' + $(this).val();
    });
    var ids = value.join('&');
    if (act == 'info_delete') {
        act = 0;
        var confirm_msg = "确认停用状态?????";
    }
    if(act == 'info_add'){
        act = 1;
        var confirm_msg = "确认恢复状态?????";
    }
    if (confirm(confirm_msg)) {
        $.ajax({
            url: '/configure/updateStatus',
            type: 'POST',
            data: {ids: ids, act: act},
            dataType: 'JSON',
            cache: false,
            success: function (json) {
                dshow(json.message);
                if (json.code == 2000) {
                    window.location.href = '/configure/horn';
                }
            }
        });
    }
});